package com.team.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="admin")
public class Admin {
	private Integer id;
	private String username;
	private String password;
	private String no;
	private String name;
	private String sex;
	private String department;
	private String email;
	private String telephone;
	
	
	public Admin() {
		super();
	}
	
	public Admin(Integer id, String username, String password, String no, String name, String sex, String department,
			String email, String telephone) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.no = no;
		this.name = name;
		this.sex = sex;
		this.department = department;
		this.email = email;
		this.telephone = telephone;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	@Override
	public String toString() {
		return "Admin [id=" + id + ", username=" + username + ", password=" + password + ", no=" + no + ", name=" + name
				+ ", sex=" + sex + ", department=" + department + ", email=" + email + ", telephone=" + telephone + "]";
	}
	
}
